@mixin tree-node-svg {
  position: relative;
  transform: translateX(-80px);
  right: -5px;
  margin-bottom: -1px;
  filter: drop-shadow(var(--el-color-primary) 80px 0);
  background-size: 18px;
}

@mixin el_tree_theme($not-expanded-url, $is-expanded-url) {
  display: inline-block;
  min-width: 100%;
  .el-tree-node__expand-icon.expanded {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  /* //有子节点 且未展开 */
  .el-tree-node.is-focusable .el-tree-node__expand-icon {
    background: $not-expanded-url no-repeat -2px 2px;
    @include tree-node-svg;
  }
  /* //有子节点 且已展开 */
  .is-expanded .el-tree-node__expand-icon.expanded {
    background: $is-expanded-url no-repeat -2px 2px;
    @include tree-node-svg;
  }
  .el-tree-node__expand-icon.is-leaf {
    visibility: hidden;
  }
}
//el-tree
.tree_v2_theme1 {
  @include el_tree_theme(url('@/assets/svg/open.svg'), url('@/assets/svg/close.svg'));
}
.tree_v2_theme2 {
  @include el_tree_theme(url('@/assets/svg/plus.svg'), url('@/assets/svg/minus.svg'));
}
.tree_v2_theme3 {
  @include el_tree_theme(url('@/assets/svg/plus-circle.svg'), url('@/assets/svg/minus-circle.svg'));
}
